<template>
    <div>
        <mt-swipe :auto="4000">
            <!-- 在组件中，使用v-for -->
            <!-- 谁调用使用，谁传递swipeList -->
            <!-- swipeList应该是 父组件向子组件 传值来设置 -->
            <mt-swipe-item v-for="item in swipeList" :key="item.id">
                <img :src="item.img" alt="item.id图片无法加载" :class="{full:  isfull}">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
export default {
    props: ["swipeList","isfull"]
}
</script>

<style lang="scss" scoped>
.mint-swipe {
    height: 200px;
    .mint-swipe-item {
        text-align: center;

        img {
            /* width: auto; */
            height: 100%
        }
    }
}
.full {
    width: 100%;
}
</style>